#pragma once
#include "baseTypes.h"

#define PLATFORM_WINDOWS
#ifdef PLATFORM_WINDOWS
#include "fmod.hpp"
#endif

enum SOUND_NAME
{
	SN_BACKGROUND_LEVEL1,
	SN_BACKGROUND_TEST,
	SN_SFX_JUMP,
	SN_SFX_DASH,
	SN_MAX,
};


class SoundManager
{
public:
	static SoundManager    *CreateInstance();
	static SoundManager    *GetInstance() {return sInstance;};
	void                   init();
	void                   PlayBackgoundSound(SOUND_NAME index);
	void                   PlaySFXSound(SOUND_NAME index);

private:
	static SoundManager    *sInstance;
	FMOD::System           *system;
	FMOD::Channel          *channel1;
	FMOD::Channel          *channel2;
	FMOD::Sound            *sound_background;
	FMOD::Sound            *sound_SFX[SN_MAX];
};